import React, { Component } from 'react';
import {
    Text, Image, View, TouchableOpacity
} from 'react-native';

import StatusCheckUtils from '../util/StatusCheckUtils';
import Dimensions from 'Dimensions';
const {height, width} = Dimensions.get('window');

/**
 * 状态查看
 */
export default class StatusCheckView extends Component {
     constructor(props) {
        super(props);
        this.state = {
        };
    }

    render() {
        const {navigate} = this.props.navigation;
        return(
            <View>
                <Text onPress={() => StatusCheckUtils.testFunction(navigate)}>测试功能</Text>
                <Text onPress={() => StatusCheckUtils.settingFunction(navigate)}>设置</Text>
                <Text onPress={() => StatusCheckUtils.signalChannel(navigate)}>信号道</Text>
                <Text onPress={() => StatusCheckUtils.underbarrelDevice(navigate)}>下挂设备</Text>
                <Text onPress={() => StatusCheckUtils.dataFlow(navigate)}>流量</Text>
                <Image source={require('../../assets/img/statusCheck.jpg')} style={{width: width, height: height}} />
            </View>
        );
    }
}